import axiosData from "@/api/axios";
// import get from "@/api/axios-standingBook";
// import axiosData from "@v3/equipment-base/api/axios-base";
// import { post1 } from "@/api/axios-base";

export default {
  /**
   * @description: 获取设备图片 *代表必填
   * @param {String/Number} equipmentCode *
   * @return {Array}
   */
  queryPictureList(params) {
    return axiosData.get(
      `v3/equipment-ledger/v1/equipmentPicture/getPictureByEquipmentCode?equipmentCode=${params}`
    );
  },

  /**
   * @description: 添加设备图片 *代表必填
   * @param {Object} params *
   * @return {Array}
   */
  addPictureList(params) {
    return axiosData.post("v3/equipment-ledger/v1/equipmentPicture/add", params);
  },

  /**
   * @description: 删除设备图片 *代表必填
   * @param {String/Number} id *
   * @return {Array}
   */
  delPictureList(params) {
    return axiosData.get(`v3/equipment-ledger/v1/equipmentPicture/delById?id=${params}`);
  },

  /**
   * @description: 修改设备图片 *代表必填
   * @param {Object} params *
   * @return {Array}
   */
  editPictureList(params) {
    return axiosData.post("v3/equipment-ledger/v1/equipmentPicture/edit", params);
  },

  /**
   * @description: 获取设备文档文件 *代表必填
   * @param {String/Number} equipmentCode *
   * @return {Array}
   */
  queryDocument(params) {
    return axiosData.get(
      `v3/equipment-ledger/v1/equipmentFile/getFileByEquipmentCode?equipmentCode=${params}`
    );
  },

  /**
   * @description: 下载文档文件 *代表必填
   * @param {String/Number} equipmentFileId *
   * @return {Array}
   */
  downPDF(params) {
    return axiosData.get1(`v3/equipment-ledger/v1/equipmentFile/getFileById`, params);
  },

  /**
   * @description: 添加设备文档文件 *代表必填
   * @param {Object} params *
   * @return {Array}
   */
  addDocument(params) {
    return axiosData.post1("v3/equipment-ledger/v1/equipmentFile/add", params);
  },

  /**
   * @description: 删除设备文档文件 *代表必填
   * @param {String/Number} id *
   * @return {Array}
   */
  delDocument(params) {
    return axiosData.get(`v3/equipment-ledger/v1/equipmentFile/delById?id=${params}`);
  },

  /**
   * @description: 上传设备视频 *代表必填
   * @param {Object} params *
   * @return {Array}
   */
  addEquipmentVideo(params) {
    return axiosData.post("v3/equipment-base/v1/equipmentVideo/add", params);
  },

  /**
   * @description: 删除设备视频列表 *代表必填
   * @param {String/Number} id *
   * @return {Array}
   */
  delVideoList(params) {
    return axiosData.get(`v3/equipment-base/v1/equipmentVideo/delById?id=${params}`);
  },

  /**
   * @description: 修改设备视频列表 *代表必填
   * @param {Object} params *
   * @return {Array}
   */
  editVideoList(params) {
    return axiosData.post("v3/equipment-base/v1/equipmentVideo/edit", params);
  },

  /**
   * @description: 获取设备视频id列表 *代表必填
   * @param {String/Number} equipmentCode *
   * @return {Array}
   */
  queryVideoIdList(params) {
    return axiosData.get(
      `v3/equipment-ledger/v1/equipment/getEquipmentVideoIdListByEquipmentCode?equipmentCode=${params}`
    );
  },
  /**
   * @description: 获取设备视频列表 *代表必填
   * @param {String/Number} equipmentCode *
   * @return {Array}
   */
  queryVideoList(params) {
    return axiosData.post(`v3/equipment-base/v1/equipmentVideo/queryListByNo`, params);
  },

  /**
   * @description: 获取设备视频 *代表必填
   * @param {String/Number} equipmentVideoId *
   * @return {Array}
   */
  queryVideo(params) {
    return axiosData.get(
      `v3/equipment-base/v1/equipmentVideo/getFileById?equipmentVideoId=${params}`
    );
  }
};
